package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 购物车业务接口
 * @author wzplove
 */
public interface ShoppingCartService {

    //  添加购物车
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    // 查看购物车
    List<ShoppingCart> showShoppingCart();

    // 删除购物车，更新商品数量
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);

    // 清空购物车
    void cleanShoppingCart();
}


